home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet internetowy / Przegladarki internetowe / Mozilla Seamonkey 1.0.5 pl / seamonkey-1.0.5.pl-PL.win32.installer.exe / MAIL.XPI / bin / chrome / messenger.jar / content / messenger / subscribe.xul < prev    next >
Encoding:
Extensible Markup Language  |  2005-07-20  |  9.2 KB  |  213 lines

  1. <?xml version="1.0"?> 
  2. <!-- ***** BEGIN LICENSE BLOCK *****
  3.  Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4.  
  5.  The contents of this file are subject to the Mozilla Public License Version
  6.  1.1 (the "License"); you may not use this file except in compliance with
  7.  the License. You may obtain a copy of the License at
  8.  http://www.mozilla.org/MPL/
  9.  
  10.  Software distributed under the License is distributed on an "AS IS" basis,
  11.  WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12.  for the specific language governing rights and limitations under the
  13.  License.
  14.  
  15.  The Original Code is Mozilla Communicator client code, released
  16.  March 31, 1998.
  17.  
  18.  The Initial Developer of the Original Code is
  19.  Netscape Communications Corporation.
  20.  Portions created by the Initial Developer are Copyright (C) 1998-1999
  21.  the Initial Developer. All Rights Reserved.
  22.  
  23.  Contributor(s):
  24.  
  25.  Alternatively, the contents of this file may be used under the terms of
  26.  either of the GNU General Public License Version 2 or later (the "GPL"),
  27.  or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28.  in which case the provisions of the GPL or the LGPL are applicable instead
  29.  of those above. If you wish to allow use of your version of this file only
  30.  under the terms of either the GPL or the LGPL, and not to allow others to
  31.  use your version of this file under the terms of the MPL, indicate your
  32.  decision by deleting the provisions above and replace them with the notice
  33.  and other provisions required by the GPL or the LGPL. If you do not delete
  34.  the provisions above, a recipient may use your version of this file under
  35.  the terms of any one of the MPL, the GPL or the LGPL.
  36.  
  37.  ***** END LICENSE BLOCK ***** -->
  38.  
  39. <?xml-stylesheet href="chrome://messenger/skin/subscribe.css" type="text/css"?>
  40.  
  41. <!DOCTYPE dialog SYSTEM "chrome://messenger/locale/subscribe.dtd">
  42.  
  43. <dialog id="subscribeWindow"
  44.         xmlns:NC="http://home.netscape.com/NC-rdf#" 
  45.         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  46.         title="&subscribeDialog.title;"
  47.         style="width: 44em; height: 33em;"
  48.         persist="width height screenX screenY"
  49.         buttons="accept,cancel,help"
  50.         onload="SubscribeOnLoad()"
  51.         onunload="SubscribeOnUnload()"
  52.         ondialogaccept="return subscribeOK();"
  53.         ondialogcancel="return subscribeCancel();"
  54.         ondialoghelp="return doHelpButton();">   
  55.      
  56. <stringbundle id="bundle_subscribe" src="chrome://messenger/locale/subscribe.properties"/>
  57. <stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
  58. <script type="application/x-javascript" src="chrome://messenger/content/mailWindow.js"/>
  59. <script type="application/x-javascript" src="chrome://messenger/content/subscribe.js"/>
  60. <script type="application/x-javascript" src="chrome://messenger/content/widgetglue.js"/>
  61. <script type="application/x-javascript" src="chrome://help/content/contextHelp.js"/>
  62.  
  63.   <grid flex="1" style="width: 40em; height: 25em;">
  64.     <columns>
  65.       <column flex="1"/>
  66.       <column/>
  67.     </columns>
  68.   
  69.     <rows>
  70.       <row>
  71.         <grid flex="1">
  72.           <columns>
  73.             <column/>
  74.             <column flex="1"/>
  75.           </columns>
  76.           
  77.           <rows>
  78.             <row>
  79.               <hbox pack="end" align="center">
  80.                 <label value="&server.label;" accesskey="&server.accesskey;" control="serverMenu"/>
  81.               </hbox>
  82.               <menulist oncommand="onServerClick(event);" id="serverMenu"
  83.                         datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
  84.                         sortResource="http://home.netscape.com/NC-rdf#FolderTreeName"
  85.                         sortDirection="ascending" ref="msgaccounts:/" flex="1">
  86.                 <template>
  87.                   <rule NC:CanSubscribe="true">
  88.                     <menupopup>
  89.                       <menuitem class="subscribeMenuItem menuitem-iconic" uri="..." label="rdf:http://home.netscape.com/NC-rdf#Name" ServerType="rdf:http://home.netscape.com/NC-rdf#ServerType" IsSecure="rdf:http://home.netscape.com/NC-rdf#IsSecure"/>
  90.                     </menupopup>
  91.                   </rule>
  92.                 </template>
  93.               </menulist>
  94.             </row>
  95.             <row align="center">
  96.               <label value="&namefield.label;" accesskey="&namefield.accesskey;" 
  97.                      id="namefieldlabel" control="namefield"/>
  98.               <textbox id="namefield" flex="1" type="timed" timeout="300" oncommand="Search();"/>
  99.             </row>
  100.           </rows>
  101.         </grid>
  102.         <spacer/>
  103.       </row>
  104.       <row>
  105.         <separator class="thin"/>
  106.         <spacer/>
  107.       </row>
  108.       <row flex="1">
  109.       <deck id="subscribedeck" selectedIndex="0">
  110.       <hbox id="normalview">
  111.         <tree id="subscribeTree"
  112.               flex="1"
  113.               datasources="rdf:null"
  114.               flags="dont-build-content"
  115.               statedatasource="rdf:null"
  116.               disableKeyNavigation="true"
  117.               onkeypress="onSubscribeTreeKeyPress(event);"
  118.               onclick="SubscribeOnClick(event);"> 
  119.           <template>
  120.             <rule>
  121.               <conditions>
  122.                 <content uri="?container"/>
  123.                 <member container="?container" child="?member"/>
  124.               </conditions>
  125.               
  126.               <bindings>
  127.                 <binding subject="?member"
  128.                         predicate="http://home.netscape.com/NC-rdf#LeafName"
  129.                         object="?LeafName"/>
  130.                 <binding subject="?member"
  131.                         predicate="http://home.netscape.com/NC-rdf#ServerType"
  132.                         object="?ServerType"/>
  133.                 <binding subject="?member"
  134.                         predicate="http://home.netscape.com/NC-rdf#Subscribed"
  135.                         object="?Subscribed"/>
  136.                 <binding subject="?member"
  137.                         predicate="http://home.netscape.com/NC-rdf#Subscribable"
  138.                         object="?Subscribable"/>
  139.                 <binding subject="?member"
  140.                         predicate="http://home.netscape.com/NC-rdf#TotalMessages"
  141.                         object="?TotalMessages"/>
  142.               </bindings>
  143.  
  144.               <action>
  145.                 <treechildren>
  146.                   <treeitem uri="?member">
  147.                     <treerow>
  148.                       <treecell label="?LeafName" properties="ServerType-?ServerType Subscribable-?Subscribable"/>
  149.                       <treecell properties="Subscribed-?Subscribed Subscribable-?Subscribable"/>
  150.                       <!-- commenting out until bug 38906 is fixed 
  151.                       <treecell label="?TotalMessages"/> -->
  152.                     </treerow>
  153.                   </treeitem>
  154.                 </treechildren>
  155.               </action>
  156.             </rule>
  157.           </template>
  158.     
  159.           <treecols id="theSubscribeColumns">
  160.             <treecol id="nameColumn" persist="hidden" flex="1" primary="true" label="..."
  161.                      sort="?LeafName"/>
  162.             <splitter class="tree-splitter"/>
  163.             <treecol id="subscribedColumn" persist="hidden" cycler="true" label="&subscribedHeader.label;"
  164.                      sort="?Subscribed"/>
  165.             <!-- commenting out until bug 38906 is fixed 
  166.             <splitter class="tree-splitter"/>
  167.             <treecol id="messagesColumn" persist="hidden" label="&messagesHeader.label;"
  168.                      sort="?TotalMessages"/> -->
  169.           </treecols>
  170.         </tree>
  171.      </hbox>
  172.      <hbox id="searchview">
  173.        <tree id="searchTree" flex="1" 
  174.               disableKeyNavigation="true"
  175.               onkeypress="onSearchTreeKeyPress(event);"
  176.               onclick="SearchOnClick(event);"> 
  177.          <treecols>
  178.            <treecol id="nameColumn2" flex="1" ignoreincolumnpicker="true" label="..." sortDirection="ascending" persist="hidden sortDirection"/>
  179.            <splitter class="tree-splitter"/>
  180.            <treecol id="subscribedColumn2" persist="hidden" cycler="true" label="&subscribedHeader.label;" />
  181.            <!-- commenting out until bug 38906 is fixed 
  182.            <splitter class="tree-splitter"/>
  183.            <treecol id="messagesColumn2" persist="hidden" label="&messagesHeader.label;" /> -->
  184.          </treecols>
  185.          <treechildren id="searchTreeBody"/>
  186.        </tree>
  187.      </hbox>
  188.      </deck>
  189.         <vbox>
  190.           <button id="subscribe" label="&subscribeButton.label;" accesskey="&subscribeButton.accesskey;" 
  191.                   oncommand="SetSubscribeState(true)"/>
  192.           <button id="unsubscribe" label="&unsubscribeButton.label;" accesskey="&unsubscribeButton.accesskey;" 
  193.                   oncommand="SetSubscribeState(false)"/>
  194.           <button id="refresh" label="&refreshButton.label;" accesskey="&refreshButton.accesskey;" 
  195.                   oncommand="Refresh()"/>
  196.           <button id="cmd_stop" label="&stopButton.label;" accesskey="&stopButton.accesskey;" 
  197.                   oncommand="Stop()"/>
  198.           <spacer flex="1"/>
  199.         </vbox>
  200.       </row>
  201.       <row>
  202.         <hbox id="statusContainerBox" >
  203.            <statusbarpanel id="statusText" crop="right" flex="1"/> 
  204.            <statusbarpanel class="statusbarpanel-progress" id="progress-panel">
  205.              <progressmeter class="progressmeter-statusbar" id="statusbar-icon" mode="normal" value="0"/>
  206.            </statusbarpanel>
  207.          </hbox>
  208.          <hbox/>
  209.       </row>
  210.     </rows>
  211.   </grid>
  212. </dialog>
  213.